<?php


/* @var $this yii\web\View */
$js = <<<JS
    var times = '<?= $ ?>'
    $(function(){
        
        $('#bth').click(function(){
        $.ajax({
            type: 'POST',
            dataType: 'json',
            url: '#',
            data: $('#form').serialize(),
            success: function(res){
                if( res.error == '-1' ){
                    alert(res.msg);
                }else{
                    alert('提交成功');
                    window.history.back();
                }
            }
            
        });
        })
    })
JS;
$this->registerJs($js);
?>
<section class="app-page-section">

    <section class="app-container app-member app-admin">

        <div class="app-admin-buy-through">
            <form action="#" method="post" id="form">
                <div class="app-admin-buy-form">
                    <textarea name="remark" id="" cols="30" rows="10" placeholder="请填写审核备注"></textarea>
                    <input type="hidden" name="_csrf-frontend" value="<?= Yii::$app->request->csrfToken ?>">
                    <div class="clearfix">
                        <label>
                            <input type="radio" name="status" value="2">
                            审核通过
                        </label>
                        <label>
                            <input type="radio" name="status" value="1">
                            审核失败
                        </label>
                    </div>
                    <button type="button" id="bth">提交</button>
                </div>
            </form>
        </div>

    </section>

</section>

